treemodelfilter: Fix using wrong path on row-deleted
authorOlivier Brunel <jjk@jjacky.com>
Thu, 16 Jan 2014 14:23:20 +0000 (15:23 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 27 Mar 2014 00:40:50 +0000 (20:40 -0400)
A "typo" led to using a wrong GtkTreePath when converting the path of the
virtual root to check the ancestors, which would lead to either no checks being
performed, or maybe segfaulting when using an invalid path as result.

https://bugzilla.gnome.org/show_bug.cgi?id=722058
Signed-off-by: Olivier Brunel <jjk@jjacky.com>
gtk/gtktreemodelfilter.c

index 7e4a8716ef3873c9118ec5e26736aadb35b08056..8844d9f2784d8cdbafe8c173dbeaa567a0316617 100644 (file)
@@ -2693,7 +2693,7 @@ gtk_tree_model_filter_row_deleted (GtkTreeModel *c_model,
       GtkTreePath *real_path;
 
       real_path = gtk_tree_model_filter_remove_root (c_path,
-                                                     filter->priv->root);
+                                                     filter->priv->virtual_root);
       if (real_path)
         {
           gtk_tree_model_filter_check_ancestors (filter, real_path);